import os.path
import pathlib

s1 = './log_dir\\AST-FINEREPORT-SERVICE-DEBUG-2025-10-19_1.log.gz'

# print(os.path.basename(s1))

# print(pathlib.Path(.suffix)


# path = pathlib.Path(os.path.basename(s1))
# print(path.exists(),path.)


path = pathlib.Path(s1)
print(path.name)
